<template>
  <el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu > 0" :title="crud.status.title" width="700px">
    <el-form ref="form" :model="form" :rules="rules" size="small" label-width="120px">
      <el-form-item label="医院名称">
        <el-input v-model="form.hospitalName" />
      </el-form-item>
      <el-form-item label="医院Logo">
        <el-input v-model="form.hospitalLogo" />
      </el-form-item>
      <el-form-item label="联系电话">
        <el-input v-model="form.hospitalContactPhone" />
      </el-form-item>
      <el-form-item label="医院地址">
        <el-input v-model="form.hospitalAddress" />
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button type="text" @click="crud.cancelCU">取消</el-button>
      <el-button :loading="crud.status.cu === 2" type="primary" @click="crud.submitCU">确认</el-button>
    </div>
  </el-dialog>
</template>

<script>
import { form } from '@crud/crud'

const defaultForm = { hospitalId: null, hospitalName: null, hospitalLogo: null, hospitalContactPhone: null, hospitalAddress: null, isPrice: null, countDevice: null, countOrder: null, amountTotal: null, amountPay: null, amountPayFree: null }
export default {
  mixins: [form(defaultForm)],
  data() {
    return {
      rules: {
      }
    }
  }
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
  /deep/ .el-input-number .el-input__inner {
    text-align: left;
  }
</style>
